

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_base_widget/textfield/text_field_02.dart';
import 'package:flutter_localizations/flutter_localizations.dart';

import 'text_field_01.dart';

///flutter应用程序中的入口函数
void main()=>runApp(AppBarApp());
///应用的根布局
class AppBarApp extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    ///构建Materia Desin 风格的应用程序
    return const MaterialApp(
      locale: Locale('zh'),
      localizationsDelegates: [
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
      ],
      supportedLocales: [
        //此处
        Locale('zh', 'CH'),
        Locale('en', 'US'),
      ],

      ///Android应用程序中任务栏中显示应用的名称
      title: "TextField 配制",
      ///默认的首页面
      home: TextFieldPage02(),
    );
  }
}


